how to find sum of list in python by value

welcome to shbcf.ru